import Vue from "vue"
import VueRouter from "vue-router"

import HomePage from "@/views/HomePage.vue"
import OrderForm from "@/views/OrderForm.vue"
import PersonalCenter from "@/views/PersonalCenter.vue"
import SortOut from "@/views/SortOut.vue"

Vue.use(VueRouter)
const router = new VueRouter({
    // 配置路由
    routes: [
        {
            path: "/homepage",
            component: HomePage
        },
        {
            path: "/orderform",
            component:OrderForm
        },
        {
            path: "/personalcenter",
            component:PersonalCenter
        },
        {
            path: "/sortout",
            component:SortOut
        },
    ]
})

export default router